module.exports = {
  plugins: [
    require('postcss-prefix-selector')({
      prefix: '#app-cad_root',
      exclude: [':root', '#app-cad_root'],

      // Optional transform callback for case-by-case overrides
      transform: function (prefix, selector, prefixedSelector, filePath) {
        if (
          selector.includes(':root') ||
          selector.includes('#app-cad_root') ||
          filePath.includes('node_modules')
        ) {
          return selector;
        }

        return prefixedSelector;
      },
    }),
    require('tailwindcss/nesting'),
    require('tailwindcss'),
  ],
};
